package com.zhao.concreteVisitor;

import com.zhao.concreteElement.Computer;
import com.zhao.concreteElement.Keyboard;
import com.zhao.concreteElement.Monitor;
import com.zhao.concreteElement.Mouse;
import com.zhao.visitor.ComputerPartVisitor;

public class ComputerPartDisplayVisitor implements ComputerPartVisitor {

    @Override
    public void visit(Mouse mouse) {
        System.out.println("Displaying mouse ...");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("Displaying monitor ...");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Displaying keyboard ...");
    }

    @Override
    public void visit(Computer computer) {
        System.out.println("Displaying computer ...");
    }
}
